import request from '@/utils/request'

// 查询运动打卡列表
export function listSport(query) {
  return request({
    url: '/manage/sport/list',
    method: 'get',
    params: query
  })
}

// 查询运动打卡详细
export function getSport(sportId) {
  return request({
    url: '/manage/sport/' + sportId,
    method: 'get'
  })
}

// 新增运动打卡
export function addSport(data) {
  return request({
    url: '/manage/sport',
    method: 'post',
    data: data
  })
}

// 修改运动打卡
export function updateSport(data) {
  return request({
    url: '/manage/sport',
    method: 'put',
    data: data
  })
}

// 删除运动打卡
export function delSport(sportId) {
  return request({
    url: '/manage/sport/' + sportId,
    method: 'delete'
  })
}
